const mysql = require('mysql');
module.exports = (sql, callback) => {
	const db = mysql.createConnection({
		host: 'localhost',
		user: 'root',
		password: 'root',
		database: 'chahuanong'
	})
	db.connect();
	db.query(sql, callback);
	db.end();
	
}